# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.contrib import admin

from .models import MenuType, Menu


@admin.register(MenuType)
class MenuTypeAdmin(admin.ModelAdmin):
    list_display = ['name', 'number']
    search_fields = ['name', 'number']
    list_filter = ['name', 'number']


@admin.register(Menu)
class MenuAdmin(admin.ModelAdmin):
    list_display = ['name', 'user', 'menu_tpye', 'add_time']
    search_fields = ['name', 'user', 'menu_tpye']
    list_filter = ['name', 'user', 'menu_tpye', 'add_time']